package com.ruoyi.project.system.oederteamgoods.service;

import com.ruoyi.project.system.oederteamgoods.domain.OrderTeamGoods;
import com.ruoyi.project.system.oederteamgoods.domain.OrderTeamGoodsDto;

import java.util.List;

/**
 * 拼团订单商品Service接口
 * 
 * @author f_baisi
 * @date 2021-03-03
 */
public interface IOrderTeamGoodsService 
{
    /**
     * 查询拼团订单商品
     * 
     * @param id 拼团订单商品ID
     * @return 拼团订单商品
     */
    public OrderTeamGoods selectOrderTeamGoodsById(String id);

    /**
     * 查询拼团订单商品列表
     * 
     * @param orderTeamGoods 拼团订单商品
     * @return 拼团订单商品集合
     */
    public List<OrderTeamGoods> selectOrderTeamGoodsList(OrderTeamGoods orderTeamGoods);

    /**
     * 新增拼团订单商品
     * 
     * @param orderTeamGoods 拼团订单商品
     * @return 结果
     */
    public int insertOrderTeamGoods(OrderTeamGoods orderTeamGoods);

    /**
     * 修改拼团订单商品
     * 
     * @param orderTeamGoods 拼团订单商品
     * @return 结果
     */
    public int updateOrderTeamGoods(OrderTeamGoods orderTeamGoods);

    /**
     * 批量删除拼团订单商品
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteOrderTeamGoodsByIds(String ids);

    /**
     * 删除拼团订单商品信息
     * 
     * @param id 拼团订单商品ID
     * @return 结果
     */
    public int deleteOrderTeamGoodsById(String id);

    List<OrderTeamGoodsDto> findListByOrderId(String id);

    OrderTeamGoodsDto findByOrderId(String orderId);
}
